/**
 * 请求类型
 */
export const requestType = {
  Delete: "DELETE",
  Get: "GET",
  Post: "POST",
  Put: "PUT"
};

/**
 * 消息类型
 */
export const reminderType = {
  repayment: {
    name: "还款提醒",
    value: "REPAYMENT",
    code: 69
  },
  followUp: {
    name: "跟进提醒",
    value: "FLLOWUP"
  },
  repaired: {
    value: "REPAIRED",
    name: "修复提醒"
  },
  derate: {
    value: "DERATE",
    name: "减免审批提醒"
  },
  apply: {
    value: "APPLY",
    name: "还款审核提醒"
  },
  assistApprove: {
    value: "ASSIST_APPROVE",
    name: "协催审批提醒"
  },
  visitApprove: {
    value: "VISIT_APPROVE",
    name: "外访申请审批提醒"
  },
  leaveCase: {
    value: "LEAVE_CASE",
    name: "留案案件提醒"
  },
  circulation: {
    value: "CIRCULATION",
    name: "提前流转审批提醒"
  },
  forceTurn: {
    value: "FORCE_TURN",
    name: "强制流转案件提醒"
  },
  memoModify: {
    value: "MEMO_MODIFY",
    name: "修改备注提醒"
  },
  caseExpire: {
    value: "CASE_EXPIRE",
    name: "案件到期提醒"
  },
  verification: {
    value: "VERIFICATION",
    name: "核销审批提醒"
  },
  followUpExport: {
    value: "FOLLOWUP_EXPORT",
    name: "跟进记录导出提醒"
  },
  judicial: {
    value: "JUDICIAL",
    name: "司法审批提醒"
  },
  dowloadFile: {
    value: "DOWNLOAD_FILE",
    name: "文件下载提醒"
  },
  caseImport: {
    value: "CASE_IMPORT",
    name: "案件导入提醒"
  },
  strategy: {
    value: "STRATEGY",
    name: "策略分配提醒"
  }
};

export const dashboardRankType = {
  amount: 0,
  count: 1,
  radio: 2
};

export const dashboardTimeType = {
  year: 0,
  month: 1,
  week: 2
};

export const dashboardQueryType = {
  inner: 1,
  outer: 2
};

/**
 * 颜色标记颜色
 */
export const CaseMarkColor = [
  {
    name: "无色",
    value: "NONE"
  },
  {
    name: "红色",
    value: "RED",
    color: "#F5CBCD"
  },
  {
    name: "蓝色",
    value: "BLUE",
    color: "#C9DDEB"
  },
  {
    name: "绿色",
    value: "GREEN",
    color: "#CDEBD5"
  }
];

/**
 * 案件操作申请类型
 */
export const ApplyType = {
  /**
   * 协催
   */
  assist: {
    name: "协催",
    value: "ASSIT_COLLECTOR"
  },
  /**
   * 协催留案
   */
  assistLeave: {
    name: "协催留案",
    value: "ASSIST_LEAVE_CASE"
  },
  /**
   * 减免
   */
  derate: {
    name: "减免",
    value: "DERATE_CASE"
  },
  /**
   * 暂停催收
   */
  pause: {
    name: "暂停催收",
    value: "PAUSE_CASE"
  },
  /**
   * 停催短信
   */
  sms: {
    name: "停催短信",
    value: "PAUSE_SMS"
  },
  /**
   * 停催电话
   */
  tel: {
    name: "停催电话",
    value: "PAUSE_TEL"
  },
  /**
   * 委外调账
   */
  adjustment: {
    name: "委外调账",
    value: "ADJUSTMENT_OUT"
  },
  /**
   * 正常留案
   */
  leave: {
    name: "正常留案",
    value: "LEAVE_CASE"
  },
  /**
   * 核销
   */
  verify: {
    name: "核销",
    value: "VERIFY_DESTORY"
  },
  /**
   * 停催激活
   */
  active: {
    name: "停催激活",
    value: "PAUSE_CASE_ACTIVE"
  },
  robbery: {
    name: "抢案共享",
    value: "ROBCASE_SHARE"
  },
  /**
   * 流转
   */
  turn: {
    name: "流转",
    value: "TURN_CASE"
  },
  /**
   * 人工划扣
   */
  repay: {
    name: "人工划扣",
    value: "REPAY_AUTO"
  },
  /**
   * 案件回收
   */
  recycle: {
    name: "案件回收",
    value: "CASE_RECYLE"
  }
};

export enum MENU_CHANNEL {
  /**
   * 不代表任何入口,(公共查询可以使用)
   */
  NONE = -1,
  /**
   * 0电催待催收
   */
  Tel_await,
  /**
   * 1电催个人案件
   */
  Tel_personal,
  /**
   * 2电催团队案件
   */
  Tel_team,
  /**
   * 3电催归C
   */
  Tel_turn,
  /**
   * 4电催已结清
   */
  Tel_settle,
  /**
   * 5电催回收
   */
  Tel_recover,
  /**
   * 6电催停催
   */
  Tel_closed,
  /**
   * 7外访待分配
   */
  Visit_await,
  /**
   * 8外访个人
   */
  Visit_personal,
  /**
   * 9外访团队
   */
  Visit_team,
  /**
   * 10外访归C
   */
  Visit_turn,
  /**
   * 11外访结清
   */
  Visit_settle,
  /**
   * 12外访回收
   */
  Visit_recover,
  /**
   * 13外访停催
   */
  Visit_closed,
  /**
   * 14法务待催收
   */
  Legal_await,
  /**
   * 15法务个人案件
   */
  Legal_personal,
  /**
   * 16法务团队案件
   */
  Legal_team,
  /**
   * 17法务归C
   */
  Legal_turn,
  /**
   * 18法务已结清
   */
  Legal_settle,
  /**
   * 19法务回收
   */
  Legal_recover,
  /**
   * 20法务停催
   */
  Legal_closed,
  /**
   * 21外访协催待分配
   */
  Assist_visit_await,
  /**
   * 22外访协催催收中
   */
  Assist_visit,
  /**
   * 23电催协催待分配
   */
  Assist_tel_await,
  /**
   * 24电催协催催收中
   */
  Assist_tel,
  /**
   * 25法务协催催收中
   */
  Assist_legal,
  /**
   * 26法务协催待分配
   */
  Assist_legal_await,
  /**
   * 27法务协催个人催收
   */
  Assist_legal_personal,
  /**
   * 28法务协催团队催收
   */
  Assist_legal_team,
  /**
   * 29诉讼待分配
   */
  Lawsuit_await,
  /**
   * 30诉讼催收中
   */
  Lawsuit,
  /**
   * 31欺诈待分配
   */
  Fraudulent_await,
  /**
   * 32欺诈催收中
   */
  Fraudulent,
  /**
   * 33案件管理-导入中的
   */
  Case_imported,
  /**
   * 34案件管理-待分配的
   */
  Case_await,
  /**
   * 35案件管理-回收案件池
   */
  Case_recover,
  /**
   * 36委外待分配
   */
  Outsource_await,
  /**
   * 37委外催收中
   */
  Outsource,
  /**
   * 38委外归C
   */
  Outsource_turn,
  /**
   * 39委外结清
   */
  Outsource_settle,
  /**
   * 40委外回收的
   */
  Outsource_recover,
  /**
   * 41委外诉讼待分配
   */
  Outsource_lawsuit_await,
  /**
   * 42委外诉讼
   */
  Outsource_lawsuit,
  /**
   * 43委外对账
   */
  Outsource_checking,
  /**
   * 44业务查询-案件查询
   */
  Query_case_query,
  /**
   * 45信修案件
   */
  Letter_repair_case,
  /**
   * 46抢案
   */
  Case_of_robbery,
  /**
   * 47短信催收
   */
  Message_collection,
  /**
   * 48车库管理
   */
  Car_management,
  /**
   * 49库存车辆
   */
  Car_garage,
  /**
   * 50库管审批
   */
  Car_warehouse_approval,
  /**
   * 51案件流转查询
   */
  Case_return_query,
  /**
   * 52回款明细报表
   */
  Repayment_report,
  /**
   * 53还款确认
   */
  Repayment_confirmation,
  /**
   * 54入库车辆报表
   */
  Warehousing_vehicle_report,
  /**
   * 55佣金报表
   */
  Commission_report,
  /**
   * 56绩效报表
   */
  Performance_report,
  /**
   * 57客群管理
   */
  Customer_group,
  /**
   * 58队列案件池
   */
  Queue_pool,
  /**
   * 59微信记录
   */
  Wechat_record_query,
  /**
   * 60邮件记录
   */
  Email_record_query,
  /**
   * 61app记录
   */
  App_record_query
}

/**
 * 当前案件业务类型
 */
export const CASE_CHANNEL = {
  /**
   * 电催
   */
  tel: "TEL",
  /**
   * 外访
   */
  visit: "VISIT",
  /**
   * 法催
   */
  legal: 'LEGAL',
  /**
   * 委外
   */
  OUTER: "OUT",
  /**
   * 核销
   */
  verify: "VERIFY",
  /**
   * 案件导入
   */
  import: "IMPORT",
  /**
   * 协催
   */
  assist: "ASSIST",
  /**
   * 电催协催
   */
  assist_tel: "ASSIST_TEL",
  /**
   * 外访协催
   */
  assist_visit: "ASSIST_VISIT",
  /**
   * 法务协催
   */
  assist_legal: "ASSIST_LEGAL",
  /**
   * 案件导入待分配
   */
  undistributed: "UNDISTRIBUTED",
  /**
   * 信用修复
   */
  CREDIT_REPAIR: "REPAIR",
  /**
   * 诉讼
   */
  law: "LAW",
  /**
   * 欺诈
   */
  fraud: "FRAUD",
  /**
   * 法务
   */
  LEGAL_URGE: "LEGAL_URGE"
};

/**
 * 停催类型
 */
export const CASE_HALT_CATEGORY = {
  /**
   * 案件停催
   */
  CASE_HALT: "CASE_HALT",
  /**
   * 电话停催
   */
  TEL_HALT: "TEL_HALT",
  /**
   * 信函停催
   */
  LETTER_HALT: "LETTER_HALT",
  /**
   * 短信停催
   */
  MESSAGE_HALT: "MESSAGE_HALT",
  // 电话激活
  TEL_ACTIVE: 'TEL_ACTIVE',
  // 短信激活
  MESSAGE_ACTIVE: 'MESSAGE_ACTIVE'
};

/**
 * 案件分配模式
 */
export const DISTRIBUTION_TYPE = [
  { name: "输入数量分配", value: "BY_CUSTOMIZE" },
  { name: "综合分配", value: "BY_INTEGRATE" },
  { name: "按金额平均分配", value: "BY_MONEY" },
  { name: "按数量平均分配", value: "BY_NUMBER" }
];
/**
 * 上传功能菜单类型
 */
export const importMenuType = {
  // 账户标签
  accountTag: 'accountTag',
  // 客户标签
  coustomerTag: 'coustomerTag',
  // 名单剔除
  listRemoved: 'listRemoved',
  // 待分配上传
  waitDistribution: 'waitDistribution',
}
/**
 * 上传案件管理-分案导入
 */
export const customImportMenuType = {
  // 入催
  Enrollment: 'Enrollment',
  // 出崔
  OutReminder: 'OutReminder',
  // 待分配上传
  waitDistribution: 'waitDistribution',
}
// 代码参数类型
export const CODE_PARAMETERS = {
  // 客观码
  KG_CODE: 'KG_CODE',
  // 行动码
  XD_CODE: 'XD_CODE',
  // 修饰码
  XS_CODE: 'XS_CODE',
  // 渠道码
  QD_CODE: 'QD_CODE',
  // 留案原因码
  LA_CODE: 'LA_CODE'
}
/**
 * 页面按钮(新增、修改、日志...)
 */
export const OPERATION_TYPE = {
  // 默认
  DEFAULT: '',
  // 新增
  ADD: 'OPERATION_ADD',
  // 编辑
  edit: 'OPERATION_EDIT',
  // 查看
  SEE: 'OPERATION_SEE',
  // 账户剔除
  ACCOUNT: 'ACCOUNT_ELIMINATION',
  // 客户剔除
  CUSTOMER: 'CUSTOMER_ELIMINATION',
  // 审批日志查看
  APPROVAL: 'APPROVAL_LOG',
  // 剔除日志查看
  ELIMINATION: 'ELIMINATION_LOG',
}

